package models;

import java.util.ArrayList;

import javax.persistence.Id;

import com.googlecode.objectify.annotation.Cached;
import com.googlecode.objectify.annotation.Unindexed;

@Cached
public class Inlink {
	@Id private String domain = "";
	@Unindexed private ArrayList<String> inLink = new ArrayList<String>();
	public String getDomain() {
		return domain;
	}
	public void setDomain(String domain) {
		this.domain = domain;
	}
	public ArrayList<String> getInLink() {
		return inLink;
	}
	public void setInLink(ArrayList<String> inLink) {
		this.inLink = inLink;
	}
	public void addInLink(String link)
	{
		if(!this.inLink.contains(link))
			this.inLink.add(link);
	}
}
